﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace GameSchool.Models
{
	public class GameRegistrationRepository
	{
		GameRegistrationDBContextDataContext db = new GameRegistrationDBContextDataContext();
		public IEnumerable<GameRegistration> GameRegistrations()
		{
			return db.GameRegistrations;
		}

		public void Save()
		{
			db.SubmitChanges();
		}

		public void Add(GameRegistration newGameRegistration)
		{
			db.GameRegistrations.InsertOnSubmit(newGameRegistration);
		}
	}
}